
const request = require('../../../../utils/request');

Component({

    behaviors: [],

    properties: {
        detailFlag: Boolean,
        foods: Object,
    },
    data: {
        comments: [],
        imgUrl: request.imgUrl
    }, // 私有数据，可用于模版渲染

    // 生命周期函数，可以为函数，或一个在methods段中定义的方法名
    attached: function () { },
    moved: function () { },
    detached: function () { },
    ready: function() {
        
        
    },

    methods: {
        closeDetail() {
            console.log(this.data.foods)
            this.setData({
                detailFlag: !this.data.detailFlag
            })
        }
    }

})